﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RPGConsole.Model.Goods
{
    public abstract class RecoverGood
    {
        public abstract string Name { get; }

        private int count;
        public int Count 
        {
            get 
            {
                return count;
            } set 
            {
                count = value < 0 ? 0 : (value > 99 ? 99 : value);
            }
        }

        public abstract void Use();
    }
}
